package com.SoftwareManage.service;

import com.SoftwareManage.entity.User;
import com.SoftwareManage.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public interface UserService {
    User findByUsername(String username);
    Set<String> findPermByUsername(String username);
    Set<String> getRolesByUsername(String username);
    List<User> selectAll();
    List<UserRole> selectAlls(int page, int pageSize);
    List<User> search(String username);
    List<UserRole> searchs(String username, int page, int pageSize);
    void update(int id, String username, String tel, String status, String remark,int role_id);
    void add(String username, String password,String tel, String status, String remark,int role_id);
    void delete(int id);
    User findById(int id);
    List<String> selectAllUsernames();
    void resetPassword(int id,String password);
    String selectRoleName(int id);
}
